#include <stdio.h>

int main() {
    struct{
        char *name;
        int num;
        int age;
        char group;
        float score;
    } stu1 = {"Tom",1,18,'A',145}, *pstu = &stu1;

    //读取结构体成员的值
    printf(
        "%s的学号是%d,年龄是%d,在%c组，今年的成绩是%.1f!\n"
        , pstu->name
        , pstu->num
        , pstu->age
        , pstu->group
        , pstu->score
    );
    printf(
        "%s的学号是%d,年龄是%d,在%c组，今年的成绩是%.1f!\n"
        , (*pstu).name
        , (*pstu).num
        , (*pstu).age
        , (*pstu).group
        , (*pstu).score
    );

    return 0;
}